package com.mzj.saas.mservice.community.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 楼宇与与单元关系表
 */
@Entity
@Table(name = "saas_community_build_unit")
public class CommunityBuildUnit extends IdEntity {

    @Basic
    @Column(name = "community_id", nullable = true)
    private String communityId; //小区id

    @Basic
    @Column(name = "build_id", nullable = true)
    private Long buildId; //楼宇id

    @Basic
    @Column(name = "name", nullable = true)
    private String name; //单元名称

    @Basic
    @Column(name = "operation_id", nullable = true)
    private String operationId; //操作人

    @Basic
    @Column(name = "create_time", nullable = true)
    private Date createTime; //操作时间

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public Long getBuildId() {
        return buildId;
    }

    public void setBuildId(Long buildId) {
        this.buildId = buildId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
